-
-
Notifications
You must be signed in to change notification settings - Fork 34k
stream: cleanup and fix Readable.wrap #34204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@nodejs/streams @mafintosh |
lib/_stream_readable.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Readable should already handle all of the above. Not sure why this was put here. Legacy?
8c12016 to
39ef8e3
Compare
Cleans up Readable.wrap and also ensures destroy is called for certain events.
| stream.on('resume', () => { | ||
| // TODO(ronag): this.resume()? | ||
| this.emit('resume'); | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little unsure what to do exactly when the wrapped stream emits pause and resume. I don't think it's relevant?
|
LGTM but would really like @mcollina to sign off before it lands |
Cleans up Readable.wrap and also ensures destroy is called for certain events. PR-URL: #34204 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
|
Landed in 4e3f6f3 |
Cleans up Readable.wrap and also ensures destroy is called for certain events.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes